#include <stdio.h>
#include <assert.h>
#include "hrd_displayer.h"
#include "hrd_char_displayer.h"
#include "hrd_color_displayer.h"
#include "hrd_table.h"


void HrdDisplayer_ShowColorMapping(hrd_problem_t *hrd_problem)
{
    HrdColorDisplayer_ShowColorMapping(hrd_problem);
}


void HrdDisplayer_DisplayMapInColorizeBlock(hrd_problem_t *hrd_problem, bool show_grid)
{
    int8_t table[8][8] = {0};

    HrdTable_ParseProblemToTable(hrd_problem, table);
    HrdColorDisplayer_DisplayMapInColorizeBlock(table, hrd_problem, show_grid);
}


void HrdDisplayer_DisplayMapInCharacter(hrd_problem_t *hrd_problem, bool show_grid)
{
    int8_t table[8][8] = {0};

    HrdTable_ParseProblemToTable(hrd_problem, table);
    HrdCharDisplayer_DisplayMapInCharacter(table, show_grid);
}